[INFO] cloning repository https://github.com/tam159/rust_udemy_beginner
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tam159/rust_udemy_beginner" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftam159%2Frust_udemy_beginner", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftam159%2Frust_udemy_beginner'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 554a02ffcea4e1b7ccda29f45fd7a06ae2b71048
[INFO] fixing tam159/rust_udemy_beginner against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftam159%2Frust_udemy_beginner" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/tam159/rust_udemy_beginner
[INFO] finished tweaking git repo https://github.com/tam159/rust_udemy_beginner
[INFO] tweaked toml for git repo https://github.com/tam159/rust_udemy_beginner written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/tam159/rust_udemy_beginner on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/tam159/rust_udemy_beginner already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] deaddb0a23bf54084372f4cf6a98fb682969233ccd589550b05478725ce5b852
[INFO] running `Command { std: "docker" "start" "deaddb0a23bf54084372f4cf6a98fb682969233ccd589550b05478725ce5b852", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "deaddb0a23bf54084372f4cf6a98fb682969233ccd589550b05478725ce5b852" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "deaddb0a23bf54084372f4cf6a98fb682969233ccd589550b05478725ce5b852", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "deaddb0a23bf54084372f4cf6a98fb682969233ccd589550b05478725ce5b852" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.140
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking rust_udemy_beginner v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: variant `Blue` is never constructed
[INFO] [stdout]   --> src/sample_enum.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | enum Colors {
[INFO] [stdout]    |      ------ variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 18 |     Blue,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Colors` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/sample_enum.rs:23:10
[INFO] [stdout]    |
[INFO] [stdout] 23 |     Name(String),
[INFO] [stdout]    |     ---- ^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 23 -     Name(String),
[INFO] [stdout] 23 +     Name(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Surname` and `Age` are never constructed
[INFO] [stdout]   --> src/sample_enum.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | enum Person {
[INFO] [stdout]    |      ------ variants in this enum
[INFO] [stdout] 23 |     Name(String),
[INFO] [stdout] 24 |     Surname(String),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 25 |     Age(i32),
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_username_from_file` is never used
[INFO] [stdout]   --> src/sample_errors.rs:47:4
[INFO] [stdout]    |
[INFO] [stdout] 47 | fn read_username_from_file() -> Result<String, io::Error> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `x` and `y` are never read
[INFO] [stdout]   --> src/sample_generic.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | struct Point<T> {
[INFO] [stdout]    |        ----- fields in this struct
[INFO] [stdout] 22 |     x: T,
[INFO] [stdout]    |     ^
[INFO] [stdout] 23 |     y: T,
[INFO] [stdout]    |     ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Blue` and `Green` are never constructed
[INFO] [stdout]   --> src/sample_generic.rs:29:5
[INFO] [stdout]    |
[INFO] [stdout] 27 | enum Colors<T> {
[INFO] [stdout]    |      ------ variants in this enum
[INFO] [stdout] 28 |     Red(T),
[INFO] [stdout] 29 |     Blue(T),
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 30 |     Green(T),
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Colors` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `x` and `y` are never read
[INFO] [stdout]   --> src/sample_generic.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 34 | struct Point2<T, V> {
[INFO] [stdout]    |        ------ fields in this struct
[INFO] [stdout] 35 |     x: T,
[INFO] [stdout]    |     ^
[INFO] [stdout] 36 |     y: V,
[INFO] [stdout]    |     ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Point2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `name` and `owner` are never read
[INFO] [stdout]   --> src/sample_memory.rs:60:5
[INFO] [stdout]    |
[INFO] [stdout] 59 | struct Dog<'l> {
[INFO] [stdout]    |        --- fields in this struct
[INFO] [stdout] 60 |     name: String,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 61 |     owner: &'l Person, // Define the same lifetime for both Dog and Person
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Dog` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `awesome` is never read
[INFO] [stdout]  --> src/sample_traits.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | struct RustDev {
[INFO] [stdout]   |        ------- field in this struct
[INFO] [stdout] 7 |     awesome: bool,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `awsome` is never read
[INFO] [stdout]   --> src/sample_traits.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | struct JavaDev {
[INFO] [stdout]    |        ------- field in this struct
[INFO] [stdout] 11 |     awsome: bool,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `color` is never read
[INFO] [stdout]   --> src/sample_traits.rs:71:5
[INFO] [stdout]    |
[INFO] [stdout] 70 | struct Cat {
[INFO] [stdout]    |        --- field in this struct
[INFO] [stdout] 71 |     color: &'static str,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:129:28
[INFO] [stdout]     |
[INFO] [stdout] 129 |         println!("R = {}", R);
[INFO] [stdout]     |                            ^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused closure that must be used
[INFO] [stdout]    --> src/main.rs:133:5
[INFO] [stdout]     |
[INFO] [stdout] 133 |     |a: i32, b: i32| println!("{}", a + b);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: closures are lazy and do nothing unless called
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Blue` is never constructed
[INFO] [stdout]   --> src/sample_enum.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | enum Colors {
[INFO] [stdout]    |      ------ variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 18 |     Blue,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Colors` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/sample_enum.rs:23:10
[INFO] [stdout]    |
[INFO] [stdout] 23 |     Name(String),
[INFO] [stdout]    |     ---- ^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 23 -     Name(String),
[INFO] [stdout] 23 +     Name(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Surname` and `Age` are never constructed
[INFO] [stdout]   --> src/sample_enum.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | enum Person {
[INFO] [stdout]    |      ------ variants in this enum
[INFO] [stdout] 23 |     Name(String),
[INFO] [stdout] 24 |     Surname(String),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 25 |     Age(i32),
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_username_from_file` is never used
[INFO] [stdout]   --> src/sample_errors.rs:47:4
[INFO] [stdout]    |
[INFO] [stdout] 47 | fn read_username_from_file() -> Result<String, io::Error> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `x` and `y` are never read
[INFO] [stdout]   --> src/sample_generic.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | struct Point<T> {
[INFO] [stdout]    |        ----- fields in this struct
[INFO] [stdout] 22 |     x: T,
[INFO] [stdout]    |     ^
[INFO] [stdout] 23 |     y: T,
[INFO] [stdout]    |     ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Blue` and `Green` are never constructed
[INFO] [stdout]   --> src/sample_generic.rs:29:5
[INFO] [stdout]    |
[INFO] [stdout] 27 | enum Colors<T> {
[INFO] [stdout]    |      ------ variants in this enum
[INFO] [stdout] 28 |     Red(T),
[INFO] [stdout] 29 |     Blue(T),
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 30 |     Green(T),
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Colors` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `x` and `y` are never read
[INFO] [stdout]   --> src/sample_generic.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 34 | struct Point2<T, V> {
[INFO] [stdout]    |        ------ fields in this struct
[INFO] [stdout] 35 |     x: T,
[INFO] [stdout]    |     ^
[INFO] [stdout] 36 |     y: V,
[INFO] [stdout]    |     ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Point2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `name` and `owner` are never read
[INFO] [stdout]   --> src/sample_memory.rs:60:5
[INFO] [stdout]    |
[INFO] [stdout] 59 | struct Dog<'l> {
[INFO] [stdout]    |        --- fields in this struct
[INFO] [stdout] 60 |     name: String,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 61 |     owner: &'l Person, // Define the same lifetime for both Dog and Person
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Dog` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `awesome` is never read
[INFO] [stdout]  --> src/sample_traits.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | struct RustDev {
[INFO] [stdout]   |        ------- field in this struct
[INFO] [stdout] 7 |     awesome: bool,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `awsome` is never read
[INFO] [stdout]   --> src/sample_traits.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | struct JavaDev {
[INFO] [stdout]    |        ------- field in this struct
[INFO] [stdout] 11 |     awsome: bool,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `color` is never read
[INFO] [stdout]   --> src/sample_traits.rs:71:5
[INFO] [stdout]    |
[INFO] [stdout] 70 | struct Cat {
[INFO] [stdout]    |        --- field in this struct
[INFO] [stdout] 71 |     color: &'static str,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:129:28
[INFO] [stdout]     |
[INFO] [stdout] 129 |         println!("R = {}", R);
[INFO] [stdout]     |                            ^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused closure that must be used
[INFO] [stdout]    --> src/main.rs:133:5
[INFO] [stdout]     |
[INFO] [stdout] 133 |     |a: i32, b: i32| println!("{}", a + b);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: closures are lazy and do nothing unless called
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.00s
[INFO] [stderr] crater-edition-check: all finished
[INFO] running `Command { std: "docker" "inspect" "deaddb0a23bf54084372f4cf6a98fb682969233ccd589550b05478725ce5b852", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "deaddb0a23bf54084372f4cf6a98fb682969233ccd589550b05478725ce5b852", kill_on_drop: false }`
[INFO] [stdout] deaddb0a23bf54084372f4cf6a98fb682969233ccd589550b05478725ce5b852
